QuickOPC User's Guide and Reference
Installing NuGet Packages using .NET CLI Tools
Fundamentals > Referencing the NuGet Packages (.NET) > Installing NuGet Packages using .NET CLI Tools

Note that before installing the NuGet packages, you need to create a .NET 6 or 7 project of the desired type. The NuGet packages get installed "into" the project.

Use this procedure also when your development environment is Visual Studio Code.

In order to install a QuickOPC NuGet package and reference it from your project:

  1. Open a command prompt.

  2. Navigate to the directory of your project.

  3. Type the following: dotnet add package OpcLabs.QuickOpc. This command adds QuickOPC package reference to the project file.

    The above command actually adds a reference to the package corresponding always to the very latest QuickOPC version. If you want to be sure that you referencing a package for QuickOPC 2023.2, use dotnet add package OpcLabs.QuickOpc --version 5.72 command instead.
  4. If you need to add more packages (see List of Component Packages), repeat the dotnet add package command, giving it the package Id as an argument.

See Also